//
//  SpellTrapCard.cpp
//  Test
//
//  Created by Pedram Ardeshirzadeh on 22-07-12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#include "SpellTrapCard.h"


SpellTrapCard::SpellTrapCard(string n, string nr, string d, string ic, string t): Card(n, nr, d) {
    icon = ic;
    type = t;
}

void SpellTrapCard::setIcon(string ic) {
    icon = ic;
}

string SpellTrapCard::getIcon() {
    return icon;
}

void SpellTrapCard::setType(string t) {
    type = t;
}

string SpellTrapCard::getType() {
    return type;
}

string SpellTrapCard::toString() {
    string output;
    stringstream ss;
    ss << "STC-" << name;
    output = ss.str();
    
    return output;
}

SpellTrapCard::~SpellTrapCard() {
    
}

ostream& operator <<(ostream& output, const SpellTrapCard &stc) {
    output << "STC-" << stc.name;
    return output;
}
